package io.yunho.alg.snowflake.demo;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

/**
 * @author: Jason
 * @date: 2020/12/28 8:55
 * @description:
 */
public class IDDemo {
    public static void main(String[] args) {
//        System.out.println(UUID.randomUUID().toString());
        System.out.println("11111111111111111111111111111111111111111".length());
        long time  =  2199023255551L;
        Date date = new Date();
        date.setTime(time);
        String format = new SimpleDateFormat("yyyy-MM-dd").format(date);//2039-09-07
        System.out.println(format);
    }
}
